package cn.tedu.tedutest02202.pojo.dto;

import lombok.Data;
import org.springframework.web.bind.annotation.ExceptionHandler;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class EmailLoginDTO implements Serializable {
    @NotNull(message = "请填写邮箱！")
    @NotEmpty(message = "请填写邮箱")
    private String email;
    @NotNull(message = "请填写密码！")
    @NotEmpty(message = "请填写密码")
    private String password;

}
